package com.yuancheng.modules.msweb.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yuancheng.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 事件信息
 * @author： yuancheng
 * @date：   2020-01-08
 * @version： V1.0
 */
@Data
@TableName("event_info")
public class EventInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**事件id*/
	@TableId(type = IdType.AUTO)
	private java.lang.Integer id;
	/**设备编号*/
	@Excel(name = "设备编号", width = 15)
	private java.lang.String devnum;
	/**事件序号*/
	@Excel(name = "事件序号", width = 15)
	private java.lang.String eventno;
	/**发生时间*/
	@Excel(name = "发生时间", width = 15)
	private java.lang.String eventtime;
	/**发生对象（通讯地址，即逻辑地址）*/
	@Excel(name = "发生对象（通讯地址，即逻辑地址）", width = 15)
	private java.lang.String devaddr;
	/**事件代号*/
	@Excel(name = "事件代号", width = 15)
	private java.lang.String eventcode;
	/**发生状态：0发生1结束*/
	@Excel(name = "发生状态：0发生1结束", width = 15,dicCode = "eventstate")
	@Dict(dicCode = "eventstate")
	private java.lang.String eventstate;
	/**上报时间*/
	@Excel(name = "上报时间", width = 15)
	private java.lang.String uploadtime;
	/**是否已读：1未读2已读*/
	@Excel(name = "是否已读：1未读2已读", width = 15,dicCode = "readstate")
	@Dict(dicCode = "readstate")
	private java.lang.String readstate;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
	private java.lang.String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date updateTime;

	/**终端名称*/
	@TableField(exist = false)
	private java.lang.String devname;

	/**事件内容*/
	@TableField(exist = false)
	private java.lang.String eventname;

	/**用户编号（即设备编号）*/
	@TableField(exist = false)
	private java.lang.String userNum;
	/**用户名称（即户表）*/
	@TableField(exist = false)
	private java.lang.String userName;
	/**用户地址（即地理位置）*/
	@TableField(exist = false)
	private java.lang.String gpsinfo;
}
